I am attempting to run the service resource on a centos7 ec2 instance (ami-d2c924b2) for auditd:
service 'auditd' do
provider Chef::Provider::Service::Init::Redhat
action :nothing
end
However it seems that the service resource is broken for centos7 instances:
service[auditd]: unable to locate the init.d script!
I am also getting this error: service[auditd] cannot be found in the resource collection.
Copyright Notice:Content Author:「Alex Cohen」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/40753359/chef-serviceauditd-is-broken-for-centos-7